import '@/assets/css/normalize.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' //引入持久化插件
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate) //挂载本地存储到 pinia

import App from './App.vue'
import router from '@/router/index'

// 全局注册自定义插件  这个引入的是 ts
import loginDialogPlugin from '@/plugin/loginDialogPlugin/index'
const app = createApp(App)
app.use(pinia)
app.use(router)
app.use(loginDialogPlugin) //挂载自定义全局插件 /在首页测试 view/home/ingx.vue
app.mount('#app')
